package com.mrdeer.web.controller.web;

import com.mrdeer.common.JSONResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@Slf4j
@RestController
@Api(tags = "IP接口")
@RequestMapping("/mrdeer/common/ip")
@Transactional
public class IpInfoController {

    @RequestMapping(value = "/info", method = RequestMethod.GET)
    @ApiOperation(value = "IP及天气相关情况")
    public JSONResult upload(HttpServletRequest request) {
        return JSONResult.ok("ok");
    }
}
